﻿using System;
using System.Windows.Controls;

namespace WpfMvvmTemplate.MD.Views.UserControls
{
    /// <summary>
    /// ViewA.xaml 的交互逻辑
    /// </summary>
    public partial class ViewA : UserControl
    {
        public ViewA()
        {
            InitializeComponent();
        }


        private void Button_Click_SnackbarMessageTime(object sender, System.Windows.RoutedEventArgs e)
        {
            SnackbarTimeSpan.MessageQueue?.Enqueue($"Hello world! Showing message for {1:F1} seconds.", null, null, null, false, true, TimeSpan.FromSeconds(1));
        }
    }
}